package com.jmodusoperandi.orders.storage.dao.spring.jdbc.rowmapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import com.jmodusoperandi.orders.model.Client;

public class RowMapperClient implements RowMapper<Client> {

	public Client mapRow(ResultSet rs, int arg1) throws SQLException {
		Client client = new Client();
		client.setId(rs.getString("cli_clients_id"));
		client.setName(rs.getString("cli_clients_name"));		
		return client;
	}
}
